<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class auth_model extends CI_Model {
	function __construct(){
	}
	
	
	function validate_login($username,$password){
		$query = "
			select count(*) as valid from login where
			username='$username' and password='$password'
		";
		$result = $this->myoracle->db_select($query);
		return $result[0]['VALID']==1;
	}
}